#ifndef __HardwareProfile_h__
#define __HardwareProfile_h__

#include <htc.h>
#define _XTAL_FREQ 8000000
#define T0CYCLE 15625
#include "afx.h"
#include "FlagDefine.h"
#include "TypeDefine.h"


#define Uart_Uart1
#include "Uart.h"
#define SetRx_CP1616_Master_Ex 
#define SetRx_CP1616_Master() NOP()
#define SetTx_CP1616_Master_Ex 
#define SetTx_CP1616_Master() NOP()
#include "CP1616_Master1.h"


GFlags gFlags;
unsigned char S93C56_ReadMode;
unsigned char GetIndex;
enum {S93C56_Wait=0,S93C56_OPCode,S93C56_Address,S93C56_RxData,S93C56_TxData};

#define S93C56_SK_DIR TRISB0  //s93c56-2
#define S93C56_DI_DIR TRISC1 //s96c56-3
#define S93C56_DO_DIR TRISC2

#define S93C56_SK_R RB0
#define S93C56_DI_R RC1
#define S93C56_DO_R RC2

#endif
